//
//  main.c
//  九九乘法表
//
//  Created by ws on 2017/7/17.
//  Copyright © 2017年 王松. All rights reserved.
//

#include <stdio.h>

/**
 九九乘法表
 1 x 1 = 1
 2 x 1 = 2 2 x 2 = 4
 3 x 1 = 3 3 x 2 = 6 3 x 3 = 9
 ......
 
 */
int main(int argc, const char * argv[]) {
    int n = 10;
    for (int i = 1; i < n; i++) {
        for (int j = 1; j <= i; j++) {
            printf("%d x %d = %2d  ",i , j ,i * j);
        }
        printf("\n");
    }
    return 0;
}
